﻿using Framework.Domain.Interface.DomainObject;
using System;
using System.Collections.Generic;
using System.Text;

namespace Framework.Domain.DomainObject
{
    public class BaseObject : IBaseObject
    {
        /// <summary>
        /// 数据存储对象，是业务对象的数据库映射
        /// </summary>
        protected BaseEntity Entity;

        /// <summary>
        /// keyid，用户数据库唯一标识
        /// </summary>
        protected Guid KeyId
        {
            get
            {
                return this.Entity.KeyId;
            }
            set
            {
                this.Entity.KeyId = value;
            }
        }

        #region IBaseObject接口方法

        /// <summary>
        /// 获取数据唯一标识
        /// </summary>
        /// <returns>Guid，唯一标识值</returns>
        public Guid GetKeyId()
        {
            return this.KeyId;
        }

        #endregion

    }
}
